{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_gjw/template/public/ygcss.css">
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li class="active"><a href="javascript:void(0);">菜单设置</a></li>
</ul>
<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                菜单设置
            </div>
            <div class="panel-body">
                <div class="form-group">
                  <label for="lastname" class="col-sm-2 control-label">菜单隐藏</label>
                  <div class="col-sm-9">
                  <label class="checkbox-inline">
                    <input type="checkbox" id="emailwy1" name="db" value="{$item['db']}" {if $item['db']==1}checked{/if} />
                    <label for="emailwy1">抖宝</label>
                  </label>
                  <label class="checkbox-inline">
                    <input type="checkbox" id="emailwy2" name="wp" value="{$item['wp']}" {if $item['wp']==1}checked{/if} />
                    <label for="emailwy2">微拍</label>
                  </label>
                  <label class="checkbox-inline">
                    <input type="checkbox" id="emailwy3" name="dt" value="{$item['dt']}" {if $item['dt']==1}checked{/if} />
                    <label for="emailwy3">地摊</label>
                  </label>
                  <label class="checkbox-inline">
                    <input type="checkbox" id="emailwy4" name="sc" value="{$item['sc']}" {if $item['sc']==1}checked{/if} />
                    <label for="emailwy4">商城</label>
                  </label>
                  <label class="checkbox-inline">
                    <input type="checkbox" id="emailwy5" name="dz" value="{$item['dz']}" {if $item['dz']==1}checked{/if} />
                    <label for="emailwy5">定制</label>
                  </label>
                </div>
             </div>
        </div>
        <div class="form-group">
            <input type="submit" name="submit" value="提交" class="btn col-sm-3" style="color: white;background-color: #44ABF7;"/>
            <input type="hidden" name="token" value="{$_W['token']}" />
             <input type="hidden" name="id" value="{$item['id']}" />
        </div>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        $("#frame-14").show();
        $("#yframe-14").addClass("wyactive");
    })
  	
    $("#emailwy1").on('click',function(){
          var db = $("input[name='db']").val();
          if (db==1) {
            $("input[name='db']").val('0');
          }else{
            $("input[name='db']").val('1');
          }
    });
    $("#emailwy2").on('click',function(){
          var wp = $("input[name='wp']").val();
          if (wp==1) {
            $("input[name='wp']").val('0');
          }else{
            $("input[name='wp']").val('1');
          }
    });
    $("#emailwy3").on('click',function(){
          var dt = $("input[name='dt']").val();
          if (dt==1) {
            $("input[name='dt']").val('0');
          }else{
            $("input[name='dt']").val('1');
          }
    });
    $("#emailwy4").on('click',function(){
          var sc = $("input[name='sc']").val();
          if (sc==1) {
            $("input[name='sc']").val('0');
          }else{
            $("input[name='sc']").val('1');
          }
    });
    $("#emailwy5").on('click',function(){
          var dz = $("input[name='dz']").val();
          if (dz==1) {
            $("input[name='dz']").val('0');
          }else{
            $("input[name='dz']").val('1');
          }
    });
</script>